package com.holly.unit.bpmn.activiti.pojo;

import com.holly.unit.core.pojo.request.BaseRequest;
import com.holly.unit.scanner.api.annotation.field.ChineseDescription;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @Description: 脚本管理
 * @Author: holly
 * @Date:   2022-03-17
 * @Version: V1.0
 */
@Data
public class ActScriptRequest extends BaseRequest{

	/**创建用户id*/
    @NotNull(message = "userId不能为空", groups = {edit.class})
    @ChineseDescription("创建用户id")
	private Long userId;
	/**备注*/
    @ChineseDescription("备注")
	private String scriptRemark;
	/**脚本内容*/
    @NotNull(message = "scriptContent不能为空", groups = {edit.class})
    @ChineseDescription("脚本内容")
	private String scriptContent;
	/**脚本语言*/
    @NotNull(message = "scriptLanguage不能为空", groups = {edit.class})
    @ChineseDescription("脚本语言")
	private Long scriptLanguage;
	/**脚本类型*/
    @NotNull(message = "scriptType不能为空", groups = {edit.class})
    @ChineseDescription("脚本类型")
	private Long scriptType;
	/**脚本名称*/
    @NotNull(message = "scriptName不能为空", groups = {edit.class})
    @ChineseDescription("脚本名称")
	private String scriptName;
	/**主键*/
	@NotNull(message = "id不能为空", groups = {add.class, edit.class, delete.class})
    @ChineseDescription("主键")
	private String id;


	/**
         * 参数校验分组：增加
         */
        public @interface add {
        }

        /**
         * 参数校验分组：编辑
         */
        public @interface edit {
        }

        /**
         * 参数校验分组：删除
         */
        public @interface delete {
        }

        /**
         * 参数校验分组：详情
         */
        public @interface detail {
        }

        /**
         * 参数校验分组：导出
         */
        public @interface export {
        }
}
